package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.live_vod_boot.entity.YxFansEntity;
import com.yxw.live_vod_boot.entity.YxOnDemandVideoEntity;
import com.yxw.live_vod_boot.entity.YxVideoLikeEntity;
import com.yxw.live_vod_boot.vo.FansListVO;
import com.yxw.live_vod_boot.vo.OnDemandVideoVo;
import com.yxw.live_vod_boot.vo.ShopFollowListVO;
import com.yxw.live_vod_boot.vo.VodLikeAndCollectVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
public interface OnDemandLikeMapper extends BaseMapper<YxVideoLikeEntity> {


    /**
     * 批量新增
     *
     * @param entityList
     */
    void saveByBatch(@Param("entityList") List<YxVideoLikeEntity> entityList);

    /**
     * 展示当前用户点赞视频列表
     */
    List<OnDemandVideoVo> getVideoLikeListByUserId(Page<YxOnDemandVideoEntity> page, @Param("userId") Long userId);

    /**
     * 查询店铺视频点赞和收藏列表
     *
     * @param page
     * @param shopId
     * @return
     */
    List<VodLikeAndCollectVo> getVodLikeAndCollectList(@Param("page") Page<VodLikeAndCollectVo> page, @Param("shopId") Long shopId);
}